import { ElNotification } from 'element-plus'

class Notification {
  success(value: string) {
    return ElNotification.success({
      message: value,
      duration: 2000,
    })
  }
  error(value: string) {
    return ElNotification.error({
      message: value,
      duration: 2000,
    })
  }
  warning(value: string) {
    return ElNotification.warning({
      message: value,
      duration: 2000,
    })
  }
  info(value: string) {
    return ElNotification.info({
      message: value,
      duration: 2000,
    })
  }
}

export default new Notification()
